package com.hps.demo.service.impl;

import com.hps.demo.entity.Clazz;
import com.hps.demo.service.IClazzService;
import org.apache.commons.lang3.RandomStringUtils;
import org.springframework.stereotype.Service;

/**
 * @author heps
 * @since 2020/11/11 9:22
 */
@Service
public class ClazzServiceImpl implements IClazzService {

  @Override
  public Clazz getClazzById(Long id) {
    Clazz clazz = new Clazz();
    clazz.setId(id);
    clazz.setName("clazz:" + RandomStringUtils.randomAlphabetic(10));
    return clazz;
  }
}
